package com.lagou.edu.mvcframework.pojo;

import java.util.HashMap;
import java.util.Map;

public class ModelAndView {
    private String view;
    private Map<String,Object> model = new HashMap<>();
    private int status = 200;

    public void addModel(String attribute,Object object){
        this.model.put(attribute,object);
    }

    public String getView() {
        return view;
    }

    public void setView(String view) {
        this.view = view;
    }

    public Map<String, Object> getModel() {
        return model;
    }

    public void setModel(Map<String, Object> model) {
        this.model = model;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
